<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script type="text/javascript" src="../scripts/jquery/jquery-1.7.1.js"></script>
    <link href="../style/authority/basic_layout.css" rel="stylesheet" type="text/css">
    <link href="../style/authority/common_style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../scripts/authority/commonAll.js"></script>
    <script type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
    <script type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="../style/authority/jquery.fancybox-1.3.4.css" media="screen"></link>
    <script type="text/javascript" src="../scripts/artDialog/artDialog.js?skin=default"></script>
    <title>信息管理系统</title>
    <script type="text/javascript">
        function fun_b() {
            var jumpNumTxt = $("#jumpNumTxt").val();
            var pageCount = $("#pageCount").val();
            var pager = $("#pager").val();

            if (jumpNumTxt == null || jumpNumTxt == "") {
                alert("不能为空！");
            } else if (jumpNumTxt < 1) {
                alert("跳转页面不能小于1！");
            } else if (parseInt(jumpNumTxt) > parseInt(pageCount)) {
                alert("跳转页不能大于总页数！");
            } else if (parseInt(jumpNumTxt) == parseInt(pager)) {
                alert("不能跳转当前页！");
            } else {
                location.href = "/Leader/LeaderPlan?page=" + jumpNumTxt;
            }
        }
    </script>
    <style>
        .alt td {
            background: black !important;
        }
    </style>
</head>
<body>
<form id="submitForm" name="submitForm" action="" method="post">
    <input type="hidden" name="allIDCheck" value="" id="allIDCheck"/>
    <input type="hidden" name="fangyuanEntity.fyXqName" value="" id="fyXqName"/>
    <div id="container">
        <div class="ui_content">
            <div class="ui_text_indent">
                <div id="box_border">
                    <div id="box_top">领导工作台</div>
                </div>
            </div>
        </div>
    </div>
    <div class="ui_content">
        <div class="ui_tb">
            <table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                <tr>
                    <th>项目计划</th>
                    <th>项目阶段</th>
                    <th>人员配置</th>
                </tr>
                <tr th:each="pro : ${progress.dataS}" th:Object="${pro}">
                    <td th:text="*{project.name}"></td>
                    <td th:if="*{project.phase}==0">全部阶段</td>
                    <td th:if="*{project.phase}==1">非现场阶段</td>
                    <td th:if="*{project.phase}==2">现场阶段</td>
                    <td th:if="*{project.phase}==3">未开展</td>
                    <td>
                        <span th:text="*{user.name}"></span>&nbsp;主审&nbsp;
                        <span th:text="*{roleManager.rolename}"></span>
                    </td>
                </tr>
            </table>
        </div>
        <div class="ui_tb_h30">
            <div class="ui_flt" style="height: 30px; line-height: 30px;">

                <span class="ui_txt_bold04" th:text="'共有 '+${progress.pageCount} + ' 条记录，当前第 '"></span>
                <span class="ui_txt_bold04" th:text="${pager}+'/'+${progress.pageCount}+' 页'"></span>
                <input id="pageCount" type="hidden" th:value="${progress.pageCount}">
                <input id="pager" type="hidden" th:value="${pager}">
            </div>
            <div class="ui_frt">
                <!--    如果是第一页，则只显示下一页、尾页 -->
                <a href="/Leader/LeaderPlan?page=1">
                    <input type="button" value="首页" class="ui_input_btn01"/>
                </a>
                <a th:href="@{/Leader/LeaderPlan?page=}+(${pager-1}<1?1:${pager-1})">
                    <input type="button" value="上一页" class="ui_input_btn01"/>
                </a>
                <a th:href="@{/Leader/LeaderPlan?page=}+(${pager+1}>${progress.pageCount}?${progress.pageCount}:${pager+1})">
                    <input type="button" value="下一页" class="ui_input_btn01"/>
                </a>
                <a th:href="@{/Leader/LeaderPlan?page=}+${progress.pageCount}">
                    <input type="button" value="尾页" class="ui_input_btn01"/>
                </a>
                <!--     如果是最后一页，则只显示首页、上一页 -->
                转到第<input type="text" id="jumpNumTxt" class="ui_input_txt01" value=""/>页
                <input type="button" class="ui_input_btn01" value="跳转" onclick="fun_b()"/>
            </div>
        </div>
    </div>
    </div>
</form>
</body>
</html>
